<template>
  <!-- 一级路由 -->
  <router-view></router-view>
</template>

<script setup>
// import { getCurrentInstance } from 'vue';
// 获取当前组件的实例，相当于Vue2的this
// const { proxy } = getCurrentInstance()
// proxy.$message({type: 'error', message: 'err'})
</script>